package com.chinanet.config;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "file")
//@Bean
/*
 * @Validated 开启验证 Class上
 * @NotNull Method 上
 * 如果是嵌套类的话,使用@Valid 最好
 */
public class FileStorageProperties {
    private String uploadDir;

    private String uploadExtensions;

    public String getUploadDir() {
        return uploadDir;
    }

    public void setUploadDir(String uploadDir) {
        this.uploadDir = uploadDir;
    }
    public String getUploadExtensions() {
        return uploadExtensions;
    }
    public void setUploadExtensions(String uploadExtensions) {
        this.uploadExtensions = uploadExtensions;
    }
}
